package com.ruoyi.loan.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.sql.Timestamp;

/**
 * Author: 廖振辉
 * Date: 2022/4/4
 * Description:
 */
@TableName(value = "t_user")
@Data
public class User {

    @TableId(type = IdType.AUTO)
    Integer id;

    String username;

    String password;

    String salt;

    String phone;

    String mail;

    String major;

    Integer grade;

    Integer classNo;

    String idCard;

    String gender;

    String college;

    String avatarUrl;

    @TableField(fill = FieldFill.INSERT)
    Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    Timestamp updateTime;
}
